{% load i18n %}
<script id="temp_deposites_legal" type="text/html">
    <div class="row">
        <div class="panel panel-bm indexBlockList">
            <div class="panel-heading">
                <div class="panel-heading-title">USD充值记录</div>
            </div>
            <div class="panel-body">
                <table class="table table-hover ">
                    <thead>
                    <tr class="bg-white ">
                        <th>币种</th>
                        <th>时间</th>
                        <th>申请数量</th>
                        <th>充值数量</th>
                        <!--
                        <th>交易id</th>
                        <th>订单id</th>
                        <th>来源</th>
                        -->
                        <th>状态</th>
                    </tr>
                    </thead>
                    <tbody class="svg_green green">
                    <% for(i = 0; i < jsonobj.length; i ++ ){ %>
                    <% var info = jsonobj[i] %>
                    <% var coin_type = info.coin_type %>
                    <% var create_time = $imports.dateFormat(info.create_time) %>
                    <% var amount = info.amount * 1 %>
                    <% var uuid = info.uuid %>
                    <% var pay_no = info.pay_no %>
                    <% var status1 = info.status %>
                    <% var pay_type = info.pay_type %>
                    <% var status = "等待充值" %>
                    <% if (status1 == 1) { %>
                    <% status = "充值成功,审核中" %>
                    <% } %>
                    <% if (status1 == 2) { %>
                    <% status = "充值失败" %>
                    <% } %>
                    <% if (status1 == 3) { %>
                    <% status = "审核通过,正在入账" %>
                    <% } %>
                    <% if (status1 == 4) { %>
                    <% status = "充值成功,已经入账" %>
                    <% } %>
                    <% var type1 = "支付宝支付" %>
                    <% if (pay_type == 3) { %>
                    <% type1 = "微信支付" %>
                    <% } %>
                    <tr>
                        <td><span> <img src="/static/images/icon/<%=coin_type%>.png" width="16px" height="16px"/></span> <b><%=coin_type%></b></td>
                        <td><%=create_time%></td>
                        <td><%=info.order_price%></td>
                        <td><%=amount%></td>
                        <!--
                        <td class='copy' data-clipboard-text="<%=uuid%>">详细</td>
                        <td class='copy' data-clipboard-text="<%=pay_no%>">详细</td>
                        <td><%=type1%></td>
                        -->
                        <td><%=status%></td>
                    </tr>
                    <%}%>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</script>

<script id="temp_withdrawes_legal" type="text/html">
    <div class="row">
        <div class="panel panel-bm indexBlockList">
            <div class="panel-heading">
                <div class="panel-heading-title">USD提现记录</div>
            </div>
            <div class="panel-body">
                <table class="table table-hover ">
                    <thead>
                    <tr class="bg-white ">
                        <th>币种</th>
                        <th>创建时间</th>
                        <th>使用时间</th>
                        <th>提现码金额</th>
                        <th>提现码</th>
                        <th>状态</th>
                    </tr>
                    </thead>
                    <tbody class="svg_green green">
                    <% for(i = 0; i < jsonobj.length; i++) { %>
                    <% var info = jsonobj[i] %>
                    <% var coin_type = info.coin_type %>
                    <% var create_time = $imports.dateFormat(info.create_time) %>
                    <% var withdraw_time = $imports.dateFormat(info.withdraw_time) %>
                    <% var amount = info.amount * 1 %>
                    <% var status1 = info.status %>
                    <% var status = "有效" %>
                    <% if (status1 != 0) { %>
                    <% status = "已经使用" %>
                    <% } %>
                    <tr>
                        <td><span> <img src="/static/images/icon/<%=coin_type%>.png" width="16px" height="16px"/></span> <b><%=coin_type%></b></td>
                        <td><%=create_time%></td>
                        <td><%=withdraw_time%></td>
                        <td><%=amount%></td>
                        <td><%=info.code%></td>
                        <td><%=status%></td>
                    </tr>
                    <% } %>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</script>
